package com.yunji.order.context.convert;

import com.yunji.common.model.dto.LoginInfo;
import com.yunji.order.domain.PayoutDO;
import com.yunji.system.context.SystemContext;

import java.util.Date;

/**
 * @author : peter-zhu
 * @date : 2025/4/11 18:08
 * @description : TODO
 **/
public class PayoutConvert {

    public static void setAuditByLogin(PayoutDO payoutDO) {
        LoginInfo info = SystemContext.getUser();
        payoutDO.setAuditor(info.getUserId());
        payoutDO.setAuditName(info.getNickname());
        payoutDO.setAuditTime(new Date());
    }

}
